﻿/**************************************************************************
创建日期:	2019/10/30 13:22:39     
作	  者:	张存
邮 	  箱:	zhangcunliang@126.com
创建时间:	
Copyright (c)  ZhCun.cn

描	述：
记	录：
***************************************************************************/
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ZhCun.WebCommon.ApiModels;
using ZhCun.WebCommon.ViewModels;
using ZhCun.WebCommon.WebApi;
using ZhCun.Utils.Helpers;
using ZhCun.WebCommon;

namespace MyConsume.Web.ApiControllers
{
    /// <summary>
    /// 工具控制器
    /// </summary>
    public class ApiToolController : ApiAuthorizeController
    {
        /// <summary>
        /// 获取httplog
        /// </summary>
        [HttpPost]
        [NonLoginVerify]
        [Route("/api/getpy")]
        public ApiResult GetPinYin(string hz)
        {   
            string py = StringHelper.GetPinYin(hz);
            return CreateResult(py);
        }
    }
}